package com.newland.starpos.partner.http;

public enum ResponseEnum {
	
	OK(0, "OK"),
	
	USER_NOT_EXIST(40010, "用户不存在,请先注册"),
	USER_PASSWORD_NULL(40011, "密码不能为空"),
	
	PHONENUMBER_NULL(40014, "手机号码为空"),
	PHONENUMBER_FORMAT_ERROR(40015, "手机号码格式错误"),
	PHONENUMBER_EXIST(40016, "手机号码已经存在"),
	
	SMS_SERVER_ERROR(40020, "短信发送异常"),
	SMS_CODE_ERROR(40022, "短信验证码错误"),
	SMS_TYPE_NULL(40023, "发送短信的类型为空"),
	SMS_TYPE_ERROR(40024, "发送短信的类型错误"),
	
	INVITE_CODE_ERROR(40030, "邀请码错误"),
	
	REGIONAL_CODE_ERROR(40040, "区域编码错误"),
	
	REGIST_PORTAL_ERROR(40061, "调用注册系统失败"),
	LOGIN_PORTAL_ERROR(40062, "调用登录系统失败"),
	RESET_PORTL_ERROR(40063, "调用重置密码系统失败"),
	
	REMOTE_CALL_ERROR(40065, "远程调用失败"),
	ACCESS_TOKEN_NULL(50001, "ACCESS_TOKEN required"),
	
	UPDATE_PASSWORD_FAIL(1,"原密码输入错误"),
	
	UPDATE_PASSWORD_SUCCESS(0,"密码修改成功"),
	
	ERROR_PORTAL_INFORMATION(2,"请求portal相关参数有误"),
	
	ACCESS_TOKEN_EXPIRED_OR_INVALID(50002, "ACCESS_TOKEN 过期或者无效,请重新登录"),
	
	LOGIN_ERROR_USER_NOT_EXIST(50004, "用户不存在,请先注册"),
	LOGIN_ERROR_USERNAME_OR_PASSWORD(50005, "用户名或者密码错误"),
	LOGIN_ERROR_TIMES_GT(50006, "登录失败次数超限,请30分钟后再试"),
	AUTHCODE_ERROR_TIMES_GT(50007, "验证码输入失败次数超限,请稍后再试"),
	AUTHCODE_LOGIN_ERROR_TIMES_GT(50008, "验证码输入失败次数超限,请1分钟后再试"),	
	PAYMENT_PASSWORD(50009, "原支付密码错误"),
	PAYMENT_PASSWORD_NO_EQUAL(50010, "新支付密码不能和原支付相同"),
	
	PAYMENT_TYPE_REQUIRED(50011, "支付方式未知"),
	PAYMENT_AMOUNT_ERROR(50012, "支付金额有误"),
	
	ACCOUNT_NOT_FOUND(50030, "帐户不存在"),
	ACCOUNT_COMMON_ERROR(50031, ""),
	RECEIVER_NOT_FONUD(50040, "暂无收货地址,请先增加"),
	RECEIVER_NOT_FORMAT(50041, "目标修改收货信息与用户不匹配"),
	
	DEVICE_ITEM_NULL(50050, "至少选购一款设备"),
	DEVICE_QUERY_ERROR(50051, "查询失败,请检查查询参数"),
	
	
	ORDER_DATA_ERROR(50060, "订单异常"),
	SIGN_CHECK_ERROR(50071, "签名验证失败"),
	
    ERROR_ID_CARD(60001, "请检查你输入的身份证位数是否正确"),
    DATA_FOUNT_REAL_NAME(60002, "该用户信息已认证"),
    REAL_NAME_AUTH_FAIL(60003, "用户信息认证失败"),
    ERROR_BANK_NAME(60004, "未识别到开户行，请绑定常见银行卡"),
    CORRECT_DEBIT_CARD(60005, "请输入正确的借记卡账号"),
    ERROR_USER_INFORMATION(60006,"身份信息有误或不匹配，请仔细核对!"),
    DATA_NOT_FOUNT_REAL_NAME(60007, "未查到该用户认证信息,请先进行实名认证"),
	DATA_NOT_FOUNT_BANK_CARD(60008, "该行银行卡信息已绑定"),
	EXIST_BAKN_NAME(60009, "该行银行卡所属行已存在"),
	
    PARAM_NULL(70001, "输入参数为空"),
	ERROR_LOG_PWDISNULL(70002, "原始密码不能为空"),
	ERROR_NEW_PWDISNULL(70003, "新密码不能为空"),
	ERROR_CONFIRME_NEW_PWDISNULL(70004,"确认新密码不能为空"),
	ERROR_PWDISNULL(70005, "两次输入的密码不一致，请重新输入"),
	ENCRYPTION_FAIL(70006,"加密失败"),
	ERROR_PAYMENT_PWDISNULL(70007,"原始支付密码不能为空"),
	USER_INFORMATION_ISNULL(70008,"未查询到该用户信息"),
    
	USER_NULL(80001,"无此用户"),
	MERCHANT_ISNULL(80002,"请核对输入的商户名称"),
	DATE_ISNULL(80003,"请核对输入的时间格式"),
	DATETIME_ISNULL(80004,"加密时间戳为空"),
	CHANNELNO_ISNULL(80005,"加密渠道号为空"),
	SECRETNO_ISNULL(80006,"加密私钥为空"),
	SECRETNO_ISNOTFOUND(80007,"渠道号未能匹配到私钥"),
	MD5SECRET_ISNOTRIGHT(80008,"双方加密数据不一致"),	
	LEVEL_ISNULL(80009,"未查询到等级相关信息"),
	MERCHAR_ISNULL(80010,"未查询到该商户信息"),
	PARAM_ISNULL(80011,"参数不完整"),
	UPDATE_FAIL(80012,"修改失败"),
	MERCH_ISNULL(80013,"未查询到该商户信息");
	
	ResponseEnum(int code, String message) {
		this.code = code;
		this.message = message;
	}
	
	private int code;
	
	private String message;

	public int code() {
		return code;
	}

	public String message() {
		return message;
	}
}